package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "sys_admin")
public class Admin implements Serializable {
	private static final long serialVersionUID = 4571606156303318741L;

	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "username_nvarchar", columnDefinition = "varchar(255)")
	private String username;
	@Column(name = "password_nvarchar", columnDefinition = "varchar(255)")
	private String password;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
	@Column(name = "disable_bit", columnDefinition = "tinyint(1)")
	private Boolean disable;
	@Column(name = "name_nvarchar", columnDefinition = "varchar(255)")
	private String name;
	@Column(name = "depart_id_bigint", columnDefinition = "bigint(20)")
	private Long departID;
	@Column(name = "depart_name_nvarchar", columnDefinition = "varchar(255)")
	private String departName;
	@Column(name = "edit_time_datetime", columnDefinition = "datetime(3)")
	private Date editTime;
}
